package myky.com.doctorapp.contract


import io.reactivex.Observable
import myky.com.doctorapp.entity.RecordEntity
import myky.com.doctorapp.entity.RemoteAutoFillEntity
import myky.com.doctorapp.entity.RemoteRepeatEntity
import myky.com.doctorapp.base.BaseEntity
import myky.com.doctorapp.base.BaseView
import myky.com.doctorapp.entity.RemoteSubmitEntity

/**
 * Description:
 *
 * @author wuyangwuyang
 * Created by 2019/1/11 on 10:27
 */
interface RemoteSubmitActivityContract {
    interface Model{

        fun getAutoFillDate(doctorId:Int): Observable<BaseEntity<RemoteAutoFillEntity.DataBean>>
        fun healthperfect():Observable<BaseEntity<RecordEntity.PayLoadBean>>
        fun isRepeat(doctorId: Int):Observable<BaseEntity<RemoteRepeatEntity.PayLoadBean>>
        fun createRemote(remoteSubmit: RemoteSubmitEntity):Observable<BaseEntity<RemoteRepeatEntity.PayLoadBean>>
    }

    interface View:BaseView<RemoteAutoFillEntity.DataBean> {

        fun showSubmitData(submitEntity: RemoteRepeatEntity.PayLoadBean)
        fun showResult(json: RecordEntity.PayLoadBean)
        fun showRepeat(remoteRepeatEntity: RemoteRepeatEntity.PayLoadBean)

    }


    interface Presenter{

        fun findSubmitData(doctorId: Int)
        fun ishealthperfect()
        fun pisRepeat(doctorId: Int)
        fun pcreateRemote(remoteSubmit:RemoteSubmitEntity)
    }
}
